package com.yan.design.two.structure.s5;

/**
 * 5. 外观模式
 *      Ster类
 * @author shengren.yan
 * @create 2022-07-31
 */
public class Ster {

    // 饿汉式 创建类
    private static Ster instance = new Ster();

    private Ster(){ }

    public void on(){
        System.out.println("  Ster on ");
    }

    public void off(){
        System.out.println("  Ster off ");
    }

    public static Ster getObj(){
        return instance;
    }

}
